Skip to main content

Quickstart Android

Group Link library's minimum Android deployment version: Android 5.0 (API Level 21)

Requirements

  • Install linking the dependency in build.gradle.
  • Required software:
    • Android Studio IDE
    • Android SDKs for developing Android apps.

Installing “Android Studio IDE”

Refer to the official Android Studio installation documentation.

  • (Windows)

    • Assure that the environment variable JAVA_HOME is set to the correct JDK installation directory via command “set JAVA_HOME” or the windows control panel

    • Verify that the development machine meets the system requirements for Android Studio/SDK

    • Download and install android studio. About 3-4 GB of free disk space is required.

  • (Mac OS X)

    • Verify that the development machine meets the system requirements for Android Studio/SDK

    • Download and install android studio. About 3-4 GB of free disk space is required.

    • OS X may display a warning that the package is damaged and should be moved to the trash. In that case, under Preferences/Security & Privacy/Allow applications downloaded from, select "Anywhere".

Installing required Android SDK packages

Under "Tools/SDK Manager" install the following packages:

  • SDK Platforms

    • Android 8.1 (Oreo) (API Level 27)
  • SDK Tools

    • Android SDK Build Tools
    • Android Emulator
    • Android SDK Platform-Tools
    • Android SDK Tools
    • Intel x86 Emulator Accelerator (HAXM installer)
    • Support Repository (ConstraintLayout for Android, Solver for ConstraintLayout, Android Support Repository, Google Repository)

-Install linking the dependency in build.gradle. (Gradle automatic installation)

Add the JitPack repository to your build file. Add it in your root build.gradle at the end of repositories:

repositories {
google()
mavenCentral()
maven { url "https://jitpack.io" }
}

On build.gradle(app) dowload the library to your project, adding this line. Minimum compiledSdk of 31.

dependencies{
...
//Add this line
implementation 'com.grouplinknetwork:lib-grouplinknetwork:4+'
...
}

Initialize the library in the next section of the guide Grouplink init using JSON file.